package com.chinatgl.latte.util.timer;

import java.util.Timer;
import java.util.TimerTask;

/**
 * 文件描述: 倒计时
 * 作者: Created by 杨伟乔 on 2017/8/8 0008.
 * 版本号: 1.0
 */

public class BaseTimerTask extends TimerTask {


    private ITimerListener mITimerListener = null;

    public BaseTimerTask(ITimerListener timerListener) {
        this.mITimerListener = timerListener;
    }

    @Override
    public void run() {
        if (mITimerListener != null) {
            mITimerListener.onTimer();
        }
    }


}
